﻿
using System.Data;
using DataSync.Properties;

namespace DataSync.Models.Department
{
    public class Department
    {
        public static DataSet GenearteDepartment()
        {
            var dataTable = new DataTable("DepartmentDataTable");
            //Synchronize time
            var dataColumn = new DataColumn(Resources.DepartmentId, typeof(int));
            dataTable.Columns.Add(dataColumn);

            //Synchronize frequency
            dataColumn = new DataColumn(Resources.DepartmentName);
            dataTable.Columns.Add(dataColumn);

            //Send mail time
            dataColumn = new DataColumn(Resources.DepartmentContactEmail);
            dataTable.Columns.Add(dataColumn);

            var dataSet = new DataSet("DepartmentDataSet");
            dataSet.Tables.Add(dataTable);

            return dataSet;
        }
    }
}